package com.doraro.platform.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class ApiGlobalException extends RuntimeException {
    private int code;
    private String msg;

    public ApiGlobalException(String message) {
        super(message);
        this.code = 400;
        this.msg = message;
    }

    public ApiGlobalException(int code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }
}
